package com.woniuxy.impl;

import com.woniuxy.Person;

/**
 * @Author: 马宇航
 * @Todo: 同理
 * @DateTime: 01/17/0017 上午 11:36
 * @Component: 成都蜗牛学苑
 **/
public class American implements Person {
    private String name;
    private int age;

    @Override
    public String toString() {
        return "American{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public void eat() {
        System.out.println("我是美国人，我爱吃西餐！");
    }
}